{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<style type="text/css">
.bg-1 {
        background-color: #e5e5e5 !important;
    	border-bottom: 1px solid #e4e7ed;
}
 .radius:hover{
 	background:#e5e5e5;
 	border-color: #e5e5e5;
 	color: #333;
 }
 span:hover{
 	color: #333;
 }
  .text-c{
 	margin-bottom: 35px;
 }
</style>
<body>
  <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    财务管理
    <span class="c-gray en">&gt;</span>
     内部充值列表
    
   
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>
  <div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
<div class="cl pd-5 bg-1 bk-gray mt-20"><span class="l"><a class="btn btn-primary radius" data-title="内部充值" href="{:url('recharge/cz_nbcz')}?id=41&cid=31" style=" background-color: #636363;color: #fff;">内部充值</a></span></div>
      <div class="text-c" style="margin-top:10px;">
    <form action="/admin/recharge/cz_nbcz_list" enctype="application/x-www-form-urlencoded" method="post" class="l" style="margin-left:20px;">
  
    <input type="text" name="us_sql" id="us_sql" value="{$username}" placeholder=" 会员账号" style="width:250px" class="input-text">
    日期范围：
    <input type="text" value="{$time1}" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmin" name="sDate1" class="input-text Wdate" style="width:120px;">
    -
    <input type="text" value="{$time2}" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmax" name="sDate2" class="input-text Wdate" style="width:120px;">
    <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    
  </form>
  
  </div>

     <div class="page-container dataTables_wrapper">
      <div id="tab-system" class="HuiTab">
        <div class="tabCon">
          <div class="mt-20">
            <table
              class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
              <thead>
                <tr class="text-c">
                  <th>ID</th>
                  <th>内部账户</th>
                  <th>充值金额</th>
                  <th>充值时间</th>
                  <th>操作员</th>
                </tr>
                {volist name="query" id="item"}
              </thead>
              <tbody>
              
                <tr class="text-c">
                  <td>{$item.id}</td>
                  <td>{$item.username}</td>
                  <td>{$item.je}</td>
                  <td>{$item.cztime|date="Y-m-d H:i:s",###}</td>
                   <td>{$item.czadmin}</td>  
                </tr>
              {/volist}
              </tbody>
            </table>
          </div>
        </div>
      </div>
      <div class="dataTables_paginate paging_simple_numbers" style="width:100%;">
            <div style="float:left;">  
                      每页显示<select name="limit" style="height:26px;" id="code">
                      <option value="20" {if condition="$limit eq 20"}selected{/if}>
                20
              </option>
              <option value="50" {if condition="$limit eq 50"}selected{/if}>
                50
              </option>
              <option value="100" {if condition="$limit eq 100"}selected{/if}>
                100
              </option>
                          
                          
                       </select>条
                      </div>
            <span style="float:right;margin-left:-2px;">总共{$query->lastPage()}页  当前第{$query->currentPage()}页 ，共{$query->total()}条</span>
            <div style="float:left;">{$query->render()}</div>
    </div>
    </div>
    </div>
</div>

{/block}{block name="js"}
 <script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript">
    $(function() {
  $('.skin-minimal input').iCheck({
    checkboxClass : 'icheckbox-blue',
    radioClass : 'iradio-blue',
    increaseArea : '20%'
  });
  $("#tab-system").Huitab({
    index : 0
  });
});
</script>
<script>
$(function(){
var username=$("#us_sql").val();
var time1=$("#logmin").val();
var time2=$("#logmax").val();
var id = $(this).find('option:selected').val();
var li=$(".am-pagination").children();
  for (i = 0; i < li.length; i++) {
        
        var url=li.eq(i).attr('href');
        if(url){
          li.eq(i).attr('href',url+'&&username='+username+'&&time1='+time1+'&&time2='+time2+"&&limit="+id);
        }       
    }
  
})
$("#code").on('change',function(){
    var username=$("#us_sql").val();
    var time1=$("#logmin").val();
    var time2=$("#logmax").val();
    var id = $(this).find('option:selected').val();
    window.location.href="/admin/recharge/cz_nbcz_list?username="+username+"&&limit="+id+"&&time1="+time1+"&&time2="+time2;
  })
</script>
{/block}
